package com.kedacom.demo.quartz2;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

// @Service("testBadJob")
public class TestBadJob extends Job {

	protected Logger logger = LoggerFactory.getLogger(getClass());

	@Resource
	private TestService testService;

	@Override
	public void execute() {
		try {
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		testService.executeSomeSqlWithReadOnlyTransactional();
		testService.executeSomeBadSqlV2();
	}

}
